const accountInfo = wx.getAccountInfoSync()
const envVersion = accountInfo.miniProgram.envVersion
const env = {}

switch (envVersion) {
  case "develop":
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;
  case "trial":
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;
  case "release":
    env.baseURL = 'https://gmall-prod.atguigu.cn/mall-api'
    break;
  default:
    break;
}

export default env
